package com.xrf;


import javafx.scene.chart.CategoryAxis;

import javax.swing.*;
import java.awt.*;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class ConstructionSitePersonnel extends AxisStylePane<CategoryAxis> {
    private Long number;
    private Double user;
    private Long password;
    private Double identifyingCode;
    private String entry;

    private static List<ConstructionSitePersonnel> list = new ArrayList<>();
    private static Scanner scanner = new Scanner(System.in);

    // UI Components
    private BorderAttriPane borderAttriPane;
    private AxisArrowPane axisArrowPane;
    private DateAxisPane datePane;
    private TickMarkPane tickMarkPane;
    private AxisLabelPane axisLabelPane;
    private FormatBox formatBox;
    private TextAttrRotationPane textAttrPane;

    public ConstructionSitePersonnel() {}

    public ConstructionSitePersonnel(Long number, Double user, Long password, Double identifyingCode, String entry) {
        this.number = number;
        this.user = user;
        this.password = password;
        this.identifyingCode = identifyingCode;
        this.entry = entry;
    }

    // Getter and Setter methods
    public Long getNumber() { return this.number; }
    public void setNumber(Long number) { this.number = number; }
    public Double getUser() { return this.user; }
    public void setUser(Double user) { this.user = user; }
    public Long getPassword() { return this.password; }
    public void setPassword(Long password) { this.password = password; }
    public Double getIdentifyingCode() { return this.identifyingCode; }
    public void setIdentifyingCode(Double identifyingCode) { this.identifyingCode = identifyingCode; }
    public String getEntry() { return this.entry; }
    public void setEntry(String entry) { this.entry = entry; }

    @Override
    public String toString() {
        StringBuilder builder = new StringBuilder();
        builder.append("编号:").append(number).append("\t");
        builder.append("用户:").append(user).append("\t");
        builder.append("密码:").append(password).append("\t");
        builder.append("验证码:").append(identifyingCode).append("\t");
        builder.append("登录:").append(entry).append("\t");
        return builder.toString();
    }

    private void initComponents() {
        setLayout(FRGUIPaneFactory.createBorderLayout());
        JPanel localJPanel1 = FRGUIPaneFactory.createY_AXISBoxInnerContainer_S_Pane();
        add(localJPanel1, "North");
        
        // ... UI initialization code
    }

    public void populate(CategoryAxis paramCategoryAxis) {
        if (paramCategoryAxis == null) return;
        // ... populate logic
    }

    public void update(CategoryAxis paramCategoryAxis) {
        // ... update logic
    }
}